function get_url_attr(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
	var r = window.location.search.substr(1).match(reg);
	if (r != null) return unescape(r[2]); return null;
} 
$('#dialog-reg').click(function(){
	art.dialog.open("/member/login/reg", 
		{	id:'reg',
			title: '注册',
			lock: true
		});
});
$('#dialog-login').click(function(){
	art.dialog.open("/login", 
		{	id:'login',
			title: '登录',
			lock: true
		});
});
//点击删除按钮
$('.delete').click(function(){
		var f=confirm('确认要执行该操作吗？');
		if(f==false){
			return false;
		}
});

function closeDialog(){
	var list = art.dialog.list;
	for (var i in list) {
		list[i].close();
	};
}